<template>
  <div class="FooterMain">
    <el-skeleton :rows="0" animated v-if="skeletonBotType"/>
    <div @click="jump(dataList.icpurl)"><span>{{ dataList.title }}</span>{{ dataList.icp }}</div>
  </div>
</template>
<script>
import Interface from '.././views/home/serve/api';
export default {
  name: 'Footer',
  data () {
    return {
      dataList: '',
      skeletonBotType: true,
    };
  },
  mounted () {
    this.getZylIcpAll();
  },
  methods: {
    // 查询ICP信息
    getZylIcpAll () {
      Interface.getZylIcpAll().then(res => {
        if (res.status === 200) {
          this.skeletonBotType = false;
          this.dataList = res.data[0];
        }
      })
    },

    // 跳转
    jump (icpurl) {
      window.open(icpurl, '_blank')
    },
  }
}
</script>
